/**  
* @Title: Comment.java 
* @Description:
* @Copyright: Copyright (c) 2018
* @Company:http://www.sinocon.cn
* @author Administrator  
* @date 2018年3月29日  
* @version 1.0  
*/
package com.yuanlinsu.project.blog.entity;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

import com.yuanlinsu.project.system.BaseEntity;

/**
 * 评论表
 * 
 * @Title: Comment
 * @Description:
 * @author:Administrator
 * @date 2018年3月29日
 */
@Table(name = "t_b_comment")
public class Comment extends BaseEntity {

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;
	@Id
	private int pid;
	private int atUid;// 被@的用户id
	private int pBlogId;// 被评论的文章Id
	private int pUid;// 评论者
	private String pContent;
	private Date pCreatetime;
	private String pLocalAddress;
	private String pIp;

	/**
	 * @return the pid
	 */
	public int getPid() {
		return pid;
	}

	/**
	 * @param pid
	 *            the pid to set
	 */
	public void setPid(int pid) {
		this.pid = pid;
	}

	/**
	 * @return the atUid
	 */
	public int getAtUid() {
		return atUid;
	}

	/**
	 * @param atUid
	 *            the atUid to set
	 */
	public void setAtUid(int atUid) {
		this.atUid = atUid;
	}

	/**
	 * @return the pBlogId
	 */
	public int getpBlogId() {
		return pBlogId;
	}

	/**
	 * @param pBlogId
	 *            the pBlogId to set
	 */
	public void setpBlogId(int pBlogId) {
		this.pBlogId = pBlogId;
	}

	
	/**
	 * @return the pUid
	 */
	public int getpUid() {
		return pUid;
	}

	/**
	 * @param pUid the pUid to set
	 */
	public void setpUid(int pUid) {
		this.pUid = pUid;
	}

	/**
	 * @return the pContent
	 */
	public String getpContent() {
		return pContent;
	}

	/**
	 * @param pContent
	 *            the pContent to set
	 */
	public void setpContent(String pContent) {
		this.pContent = pContent;
	}

	

	/**
	 * @return the pCreatetime
	 */
	public Date getpCreatetime() {
		return pCreatetime;
	}

	/**
	 * @param pCreatetime the pCreatetime to set
	 */
	public void setpCreatetime(Date pCreatetime) {
		this.pCreatetime = pCreatetime;
	}

	/**
	 * @return the pLocalAddress
	 */
	public String getpLocalAddress() {
		return pLocalAddress;
	}

	/**
	 * @param pLocalAddress
	 *            the pLocalAddress to set
	 */
	public void setpLocalAddress(String pLocalAddress) {
		this.pLocalAddress = pLocalAddress;
	}

	/**
	 * @return the pIp
	 */
	public String getpIp() {
		return pIp;
	}

	/**
	 * @param pIp
	 *            the pIp to set
	 */
	public void setpIp(String pIp) {
		this.pIp = pIp;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
